home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Over 1,000 Windows 95 Programs
/
Over 1000 Windows 95 Programs (Microforum) (Disc 2).iso
/
1318
/
cap2lc1.s
< prev
next >
Wrap
Text File
|
1993-05-30
|
3KB
|
185 lines
\ CAP2LC1.S
\ This table will transform an all-upper-case file into upper and lower
\ Sentence-style (1st word of a sentence is caps, all others lower case)
\ What you do is run this table on your all-cap input files first,
\ then run CAP2LC2.S to clean-up any straggler words that got misconverted
\ in this pass
\s=*01 \ beginning of file sets the cap flag
\ Note: almost all of these equations could be eliminated by using
\ a wild card conversion routine, but I've chosen to use the literals
\ for increased speed.
A*01=A*00 \ Keep the Cap if flag 1 is ON, then turn it OFF
B*01=B*00
C*01=C*00
D*01=D*00
E*01=E*00
F*01=F*00
G*01=G*00
H*01=H*00
I*01=I*00
J*01=J*00
K*01=K*00
L*01=L*00
M*01=M*00
N*01=N*00
O*01=O*00
P*01=P*00
Q*01=Q*00
R*01=R*00
S*01=S*00
T*01=T*00
U*01=U*00
V*01=V*00
W*01=W*00
X*01=X*00
Y*01=Y*00
Z*01=Z*00
\ all other characters reset the flag and force lower case
\ some of the following conversions are commented out, take note.
\00=\00*00
\01=\01*00
\02=\02*00
\03=\03*00
\04=\04*00
\05=\05*00
\06=\06*00
\07=\07*00
\08=\08*00
\ \09=\09*00
\ \0A=\0A*00
\0B=\0B*00
\0C=\0C*00
\ \0D=\0D*00
\0E=\0E*00
\0F=\0F*00
\10=\10*00
\11=\11*00
\12=\12*00
\13=\13*00
\14=\14*00
\15=\15*00
\16=\16*00
\17=\17*00
\18=\18*00
\19=\19*00
\1A=\1A*00
\1B=\1B*00
\1C=\1C*00
\1D=\1D*00
\1E=\1E*00
\1F=\1F*00
\ \20=\20*00
!=!*00
\ "="*00 \ commented out because we want Caps to appear after quotes
#=#*00
$=$*00
%=%*00
&=&*00
'='*00
\ (=(*00 \ commented out because we want Caps to appear after paren
)=)*00
\ \2A=\2A*00 \ etc. etc.
\ \2B=\2B*00
,=,*00
\ -=-*00
.=.*00
/=/*00
0=0*00
1=1*00
2=2*00
3=3*00
4=4*00
5=5*00
6=6*00
7=7*00
8=8*00
9=9*00
:=:*00
;=;*00
\ <=<*00
\ \3D=\3D*00
>=>*00
?=?*00
@=@*00
A=a*00
B=b*00
C=c*00
D=d*00
E=e*00
F=f*00
G=g*00
H=h*00
I=i*00
J=j*00
K=k*00
L=l*00
M=m*00
N=n*00
O=o*00
P=p*00
Q=q*00
R=r*00
S=s*00
T=t*00
U=u*00
V=v*00
W=w*00
X=x*00
Y=y*00
Z=z*00
\ [=[*00
\5C=\5C*00
]=]*00
^=^*00
_=_*00
\ `=`*00
a=a*00
b=b*00
c=c*00
d=d*00
e=e*00
f=f*00
g=g*00
h=h*00
i=i*00
j=j*00
k=k*00
l=l*00
m=m*00
n=n*00
o=o*00
p=p*00
q=q*00
r=r*00
s=s*00
t=t*00
u=u*00
v=v*00
w=w*00
x=x*00
y=y*00
z=z*00
\ {={*00
\ |=|*00
}=}*00
~=~*00
=*00
\ these are down here since SNR uses a last-entered,
\ first-tested heirarchy and we want the stuff we are defining
\ below to override the stuff we have defined above.
:=:*01 \ a colon sets the flag
?=?*01 \ a question mark sets it
!=!*01 \ a bang sets it
.=.*01 \ a period sets the flag
.\n=.\p1*00 \ a period followed by a number does not
\0d\0a\0d\0a=\0d\0a\0d\0a*01 \ two CRs in a row do, too.
\0a\0a=\0a\0a*01 \ two LFs in a row do, too.